package cn.faster.sys.vo;

import cn.faster.sys.entity.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

/**
 * description: UserVO
 * date: 2021/6/10 17:18
 * author: XiaoCoder
 * version: 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "用户信息VO")
public class SysUserVO extends SysUser {

    @ApiModelProperty("用户角色组信息")
    private List<SysRole> sysRoleList;

    @ApiModelProperty("用户角色权限信息")
    private List<SysMenu> sysMenus;


    @ApiModelProperty("用户上传照片")
    private MultipartFile multipartFile;


    @ApiModelProperty("用户信息表")
    private SysUser sysUser;


    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "选择搜索最小时间")
    private Date localDateTimeMin;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "选择搜索最大时间")
    private Date localDateTimeMax;


}
